class ExpertRecordEntity {
  List<Achievement>? achievement;
  String? backRatio;
  String? backRatioM;
  String? redKeep;
  String? redKeepHigh;
  String? valueN;
  String? winRatio;
  String? winRatioM;
  String? backRatioNew;
  String? backRatioMNew;

  ExpertRecordEntity(
      {this.achievement,
      this.backRatio,
      this.backRatioM,
      this.redKeep,
      this.redKeepHigh,
      this.valueN,
      this.winRatio,
      this.winRatioM,
      this.backRatioNew,
      this.backRatioMNew});

  ExpertRecordEntity.fromJson(Map<String, dynamic> json) {
    if (json['achievement'] != null) {
      achievement = <Achievement>[];
      json['achievement'].forEach((v) {
        achievement!.add(new Achievement.fromJson(v));
      });
    }
    backRatio = json['backRatio'];
    backRatioM = json['backRatioM'];
    redKeep = json['redKeep'];
    redKeepHigh = json['redKeepHigh'];
    valueN = json['valueN'];
    winRatio = json['winRatio'];
    winRatioM = json['winRatioM'];
    backRatioNew = json['backRatioNew'];
    backRatioMNew = json['backRatioMNew'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.achievement != null) {
      data['achievement'] = this.achievement!.map((v) => v.toJson()).toList();
    }
    data['backRatio'] = this.backRatio;
    data['backRatioM'] = this.backRatioM;
    data['redKeep'] = this.redKeep;
    data['redKeepHigh'] = this.redKeepHigh;
    data['valueN'] = this.valueN;
    data['winRatio'] = this.winRatio;
    data['winRatioM'] = this.winRatioM;
    data['backRatioNew'] = this.backRatioNew;
    data['backRatioMNew'] = this.backRatioMNew;
    return data;
  }
}

class Achievement {
  int? planId;
  int? status;

  Achievement({this.planId, this.status});

  Achievement.fromJson(Map<String, dynamic> json) {
    planId = json['planId'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['planId'] = this.planId;
    data['status'] = this.status;
    return data;
  }
}
